package com.wuye.zlgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wuye.zlgl.mapper.WyRoomRentMapper;
import com.wuye.zlgl.domain.WyRoomRent;
import com.wuye.zlgl.service.IWyRoomRentService;

/**
 * 房屋租赁Service业务层处理
 * 
 * @author avalon
 * @date 2024-11-22
 */
@Service
public class WyRoomRentServiceImpl implements IWyRoomRentService 
{
    @Autowired
    private WyRoomRentMapper wyRoomRentMapper;

    /**
     * 查询房屋租赁
     * 
     * @param id 房屋租赁主键
     * @return 房屋租赁
     */
    @Override
    public WyRoomRent selectWyRoomRentById(Long id)
    {
        return wyRoomRentMapper.selectWyRoomRentById(id);
    }

    /**
     * 查询房屋租赁列表
     * 
     * @param wyRoomRent 房屋租赁
     * @return 房屋租赁
     */
    @Override
    public List<WyRoomRent> selectWyRoomRentList(WyRoomRent wyRoomRent)
    {
        return wyRoomRentMapper.selectWyRoomRentList(wyRoomRent);
    }

    /**
     * 新增房屋租赁
     * 
     * @param wyRoomRent 房屋租赁
     * @return 结果
     */
    @Override
    public int insertWyRoomRent(WyRoomRent wyRoomRent)
    {
        return wyRoomRentMapper.insertWyRoomRent(wyRoomRent);
    }

    /**
     * 修改房屋租赁
     * 
     * @param wyRoomRent 房屋租赁
     * @return 结果
     */
    @Override
    public int updateWyRoomRent(WyRoomRent wyRoomRent)
    {
        return wyRoomRentMapper.updateWyRoomRent(wyRoomRent);
    }

    /**
     * 批量删除房屋租赁
     * 
     * @param ids 需要删除的房屋租赁主键
     * @return 结果
     */
    @Override
    public int deleteWyRoomRentByIds(Long[] ids)
    {
        return wyRoomRentMapper.deleteWyRoomRentByIds(ids);
    }

    /**
     * 删除房屋租赁信息
     * 
     * @param id 房屋租赁主键
     * @return 结果
     */
    @Override
    public int deleteWyRoomRentById(Long id)
    {
        return wyRoomRentMapper.deleteWyRoomRentById(id);
    }

    @Override
    public int getInfoById(Long unitId, Long roomId) {
        return 0;
    }
}
